﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ControlExpenseLine.ascx.cs"
    Inherits="xManagerWebApp.ControlExpenseLine" %>
<p>
<asp:Label ID="lb_Date" runat="server" Text="Date(dd-mm-yyyy):" CssClass="label"></asp:Label>
<%--<input id="in_Date" runat="server" name="Date" type="text" />--%>
<asp:TextBox ID="tb_Date" runat="server" CssClass="text"></asp:TextBox>
</p>
<%--<asp:RequiredFieldValidator ID="RequiredFieldValidator6" Display="Dynamic" ControlToValidate="tb_Date"
    ErrorMessage="Cannot be empty!" runat="server"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="Val2" ControlToValidate="tb_Date" Display="Dynamic"
    ErrorMessage="Format: dd-mm-yyyy" runat="server" 
    ValidationExpression="\d{2}['/']\d{2}['/']\d{4}"></asp:RegularExpressionValidator>--%>
<asp:CompareValidator ID="CompareValidator1" runat="server" 
    ErrorMessage="Please enter a valid date." ControlToValidate="tb_Date" Type="Date" Operator="DataTypeCheck">
    </asp:CompareValidator>
<%--<br />
<utc:RichCalendar ID="Calendar" runat="server" />
<br />--%>
<p>
<asp:Label ID="lb_Description" runat="server" Text="Description:" CssClass="label"></asp:Label>
<asp:TextBox ID="tb_description" runat="server" CssClass="text" TextMode="MultiLine"></asp:TextBox>
</p>
<p>
<asp:Label ID="lb_Justification" runat="server" Text="Justification:" CssClass="label"></asp:Label>
<asp:TextBox ID="tb_Justification" runat="server" Height="89px" TextMode="MultiLine" CssClass="//"></asp:TextBox>
</p>
<asp:DropDownList ID="ddl_ExpenseTypes" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_ExpenseTypes_SelectedIndexChanged"
    DataTextField="Name" DataValueField="Id">
</asp:DropDownList>
<br />
<asp:PlaceHolder ID="ph_ControlHolder" runat="server"></asp:PlaceHolder>
<br />
<%--<asp:Button ID="bt_submit" runat="server" Text="Submit" OnClick="bt_submit_Click" />--%>